import { GetAction, PostAction } from "./reque"

export const Http = {
    // 单位登录
    unitLogin: (data: object) => PostAction('/api/unit/loginByCode', data),

    // 个人登录
    personalLogin: (data: object) => PostAction('/api/user/login', data),

    // 个人注册
    personalReg: (data: object) => PostAction('/api/user/register', data),

    // 接收验证码
    smsValid: (data: object) => PostAction('/api/common/smsValid', data),

    // 请求数据
    dataRequest: (params?: object) => GetAction('/api/unit/searchList',params ),


}